<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="bg-content">
<div class="col-xs-11">
	<div class="row">
		<article class="span8">
			<h3>车辆列表</h3>
			<hr>
			<div class="inner-1">
				<table id="querygrid" class="easyui-datagrid" title="车辆列表"
					data-options="
							iconCls: 'icon-edit',
							singleSelect: true,
							toolbar: '#tb',
							pagination:true,
							rownumbers:true,
							 fitColumns: true,
							singleSelect:true,
							url: '${pageContext.request.contextPath}/car/list',
							pageSize:10,
							pageList: [10,20,30],
							collapsible:true,
							method: 'post'
						">
					<thead>
						<tr>
							<th data-options="field:'id',checkbox:true">序列号</th>
							<th data-options="field:'carNo',width:'20%'">车辆编号</th>
							<th data-options="field:'platNo',width:'20%'">车牌号</th>
							<th data-options="field:'load',width:'10%'">载重</th>
							<th data-options="field:'status',formatter:function(value,rec){if(rec.status==true){return '发货中';}else{return '空闲';}},width:'10%'">状态</th>
							<th data-options="field:'operateViewDate',width:'10%'">操作时间</th>
						</tr>
					</thead>
				</table>
				<div id="tb" style="height: auto">
					<a href="javascript:void(0)" class="easyui-linkbutton auto-addbutton"
						data-options="iconCls:'icon-add',plain:true,index:'id',url:'${pageContext.request.contextPath}/car/add'">添加</a>
					<a href="javascript:void(0)" class="easyui-linkbutton auto-editbutton"
						data-options="iconCls:'icon-edit',plain:true,index:'id',url:'${pageContext.request.contextPath}/car/edit'">修改</a>
					<a href="javascript:void(0)" class="easyui-linkbutton auto-delbutton"
						data-options="iconCls:'icon-remove',plain:true,index:'id',url:'${pageContext.request.contextPath}/car/delete'">删除</a>
					<a href="javascript:void(0)" class="easyui-linkbutton auto-editbutton"
						data-options="iconCls:'icon-save',plain:true,index:'id',url:'${pageContext.request.contextPath}/car/send'">车辆发货</a>
					<a href="javascript:void(0)" class="easyui-linkbutton auto-editbutton"
						data-options="iconCls:'icon-save',plain:true,index:'id',url:'${pageContext.request.contextPath}/car/back'">车辆归还</a>
					<a href="javascript:void(0)" class="easyui-linkbutton auto-editbutton"
						data-options="iconCls:'icon-save',plain:true,index:'id',url:'${pageContext.request.contextPath}/car/map'">地图</a>
				</div>
			</div>
		</article>
		<br/>
			<br/>
	</div>
</div>
</div>
